package cn.yanxiaohui.common.util.constant.enums;

/**
 * 书签类型枚举
 * @author yanxh
 *
 */
public enum BookMarkType implements BaseEnum {

    WORK(1, "工作常用"), SOFT(2, "软件安装或配置"), EXPAND(3, "技术学习");

    private int value;

    private String message;

    private BookMarkType(int value, String message) {
        this.value = value;
        this.message = message;
    }

    @Override
    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static BookMarkType getMessageByValue(int value){
        for (BookMarkType bookMarkType : BookMarkType.values()) {
            if(value == bookMarkType.getValue()){
                return bookMarkType;
            }
        }
        return null;
    }
}